public class StringToUpperCaseEmp {
    public static void main(String[] args) {
        String str = "string runoob";
        String strUpper = str.toUpperCase();
        System.out.println("原始字符串: " + str);
        System.out.println("转换为大写: " + strUpper);


        String str3 = "STRING RUNOOB";
        String strLower = str3.toLowerCase();
        System.out.println("原始字符串: " + str3);
        System.out.println("转换为小写: " + strLower);
    }
}
